
package com.x52im.rbchat.logic.contact.viewholder.head;

import android.view.View;

import com.x52im.rbchat.logic.contact.FriendListAdapter;
import com.x52im.rbchat.logic.contact.model.HeaderItemValue;

import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.RecyclerView;

public abstract class HeaderItemViewHolder<T extends HeaderItemValue> extends RecyclerView.ViewHolder {
    protected Fragment fragment;
    protected FriendListAdapter adapter;

    public HeaderItemViewHolder(Fragment fragment, FriendListAdapter adapter, View itemView) {
        super(itemView);
        this.fragment = fragment;
        this.adapter = adapter;
    }

    public abstract void onBind(T t);

}